<?php
  echo $this->Html->css('calendar/fullcalendar');
?>

<div id="content">
	<!--  start page-heading -->
	<div id="page-heading">
		<h1><?php echo __('Edit Event Type'); ?></h1>
    <?php //echo $this->Html->link("Ticket", array('action' => 'add')); ?>&nbsp;&nbsp;
	</div>
	<!-- end page-heading -->
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
  	<tr>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  		<th class="topleft"></th>
  		<td id="tbl-border-top">&nbsp;</td>
  		<th class="topright"></th>
  		<th rowspan="3" class="sized">
          <?php echo $this->Html->image('/images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
      </th>
  	</tr>
  	<tr>
  		<td id="tbl-border-left"></td>
  		<td>
  		<!--  start content-table-inner ...................................................................... START -->
    		<div id="content-table-inner">
      			<!--  start table-content  -->
      			<div id="table-content">

                <div class="eventTypes form">
                  <?php echo $this->Form->create('EventType');?>
                    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                        <?php 
                        		echo $this->Form->input('id', array('label' => false, 'div' => false));
                        ?>      
                    		<tr>
                    			 <th valign="top">Name :</th>
                    			 <td>
                              <?php 
                              		echo $this->Form->input('name', array('label' => false, 'div' => false));
                              ?>      
                           </td>
                    			 <td></td>
                    		</tr>
                    		<tr>
                    			 <th valign="top">Color :</th>
                    			 <td>
                              <?php 
                            		echo $this->Form->input('color', 
                            					array('options' => array(
                            						'Blue' => 'Blue',
                            						'Red' => 'Red',
                            						'Pink' => 'Pink',
                            						'Purple' => 'Purple',
                            						'Orange' => 'Orange',
                            						'Green' => 'Green',
                            						'Gray' => 'Gray',
                            						'Black' => 'Black',
                            						'Brown' => 'Brown'
                            					), 'label' => false, 'div' => false
                                    )
                                  );
                              ?>      
                           </td>
                    			 <td></td>
                    		</tr>
                        <tr>
                        	<th>&nbsp;</th>
                        	<td valign="top">
                                <?php echo $this->Form->submit(__('Submit', true), array('label' => false, 'div' => false, 'class' => 'form-submit'));?>
                         		    <a href="#" onclick="history.back(-1)" class="cancel-button">Cancel</a>
                          </td>
                        	<td></td>
                        </tr>
                      </table>
                    <?php echo $this->Form->end(); ?>
                </div>
                <div class="actions">
                	<ul>
                		<li><?php echo $this->Html->link(__('View Event Type', true), array('action' => 'view', $this->Form->value('EventType.id'))); ?></li>
                		<li><?php echo $this->Html->link(__('Manage Event Types', true), array('action' => 'index'));?></li>
                		<li><li><?php echo $this->Html->link(__('View Calendar', true), array('controller' => 'calendars', 'action' => 'index')); ?></li>
                	</ul>
                </div>
        		</div>
      <!--  end content-table  -->
    		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
